SG FileSys
Items Collection

©1998 by Stinga

Overview     Constants     Error Codes    
ProgID Not creatable
CLSID AC1ECC63-3AA9-11D2-9889-204C4F4F5020
Description

Items object is a collection of enumerated items. It has no properties or methods - the only way to use it is inside the For ... Each loop.

Example

Folowing example lists all files whose extension begins with character 'B':

Option Explicit

Dim en, item, items
Set en = CreateObject("SGFileSys.Enumerator")
en.RootPath = "C:\"
en.fileMask = "*.b??"
en.Recurse = False

Set items = en.Items
For Each item In items
   MsgBox item.Path
Next